package cn.lingyangwl.agile.plugin.file.preview.model;

import cn.lingyangwl.agile.plugin.file.preview.config.ConfigConstants;
import lombok.Getter;
import lombok.Setter;

/**
 * @author shenguangyang
 * @since 1.0.0
 */
@Getter
@Setter
public class FileAttribute {
    private FileType type;
    private String suffix;
    private String name;
    private String url;
    private String fileKey;
    private String filePassword;
    private String userToken;
    private String officePreviewType = ConfigConstants.getOfficePreviewType();
    private String tifPreviewType;
    private Boolean skipDownLoad = false;

    public FileAttribute() {
    }

    public FileAttribute(FileType type, String suffix, String name, String url) {
        this.type = type;
        this.suffix = suffix;
        this.name = name;
        this.url = url;
    }

    public FileAttribute(FileType type, String suffix, String name, String url, String officePreviewType) {
        this.type = type;
        this.suffix = suffix;
        this.name = name;
        this.url = url;
        this.officePreviewType = officePreviewType;
    }
}
